using DG.Tweening;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SlowInfoText : MonoBehaviour
{
    private MeshRenderer meshRenderer;
    private TextMesh textMesh;

    private void OnEnable()
    {
        meshRenderer = GetComponent<MeshRenderer>();
        textMesh = GetComponent<TextMesh>();
        meshRenderer.sortingOrder = 11;
        textMesh.text = InfoManager.Instance.GetInfoText();
        textMesh.color = InfoManager.Instance.GetInfoColor();
    }

    private void Start()
    {
        transform.DOLocalMoveY(5, 4);
        transform.DOScale(.13f, 2);
        Destroy(gameObject, 1.5f);
    }
}
